import RNFS from 'react-native-fs';
import {uploadImage} from '../api/request';
export const uploadRequest = async (uri: string) => {
  const content = await RNFS.readFile(uri, 'base64');
  const paths = uri.split('/');
  const name = paths[paths.length - 1];
  return uploadImage(name, content);
};
